package com.zc.app.delegation;

/**
 * Created by User on 2017/6/8.
 */
public class MallardDuck extends Duck {

    public MallardDuck() {
        setFlyBehaviro(new FLyWithWings());
        setQuackBehavior(new Quack());
    }

    @Override
    public void display() {
        System.out.println("MallardDuck");
    }
}
